<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    console.log('------- JavaScript 弱类型语言 -------')

    // /number 数值型：整型、浮点型
    let a = 10;
    // 在控制台输出
    console.log(a)
    console.log(typeof a)  // number

    let b = 12.5;
    // 在控制台输出
    console.log(b)
    console.log(typeof b)  // number

    // /string 字符串类型 '' ""
    let c = 'aaa "单引号里只能套双引号"';
    console.log("c = "+c)
    console.log(typeof c)  // string

    let d = "aaa '双引号里只能套单引号'";
    console.log("d = "+d)
    console.log(typeof c)
</script>
</html>